//
//  KFDKDJPriceLabel.m
//  KFD
//
//  Created by Lucky Luke on 8/15/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDKDJPriceLabel.h"

@interface KFDKDJPriceLabel ()

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *paramLabel;
@property (weak, nonatomic) IBOutlet UILabel *kLabel;
@property (weak, nonatomic) IBOutlet UILabel *dLabel;
@property (weak, nonatomic) IBOutlet UILabel *jLabel;

@end

@implementation KFDKDJPriceLabel

-(void)setDiagramPoint:(KFDDiagramPoint *)diagramPoint
{
    _diagramPoint=diagramPoint;
    self.priceLabel.hidden=YES;
    self.paramLabel.text=@"(9,3,3)";
    NSNumber* k=diagramPoint.kdj[0];
    NSNumber* d=diagramPoint.kdj[1];
    NSNumber* j=diagramPoint.kdj[2];
    self.kLabel.text=[NSString stringWithFormat:@"K:%.2f",k.floatValue];
    self.dLabel.text=[NSString stringWithFormat:@"D:%.2f",d.floatValue];
    self.jLabel.text=[NSString stringWithFormat:@"J:%.2f",j.floatValue];
}

@end
